﻿<Window
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Microsoft_Windows_Themes="clr-namespace:Microsoft.Windows.Themes;assembly=PresentationFramework.Aero" mc:Ignorable="d"
	x:Class="MainWindow"
	x:Name="Window"
	Title="BlackJack"
	Width="640" Height="480" Background="#FF333333" WindowStyle="SingleBorderWindow" WindowStartupLocation="CenterScreen" MinHeight="480" MinWidth="640" UseLayoutRounding="True" Topmost="False">
	<Window.Resources>
		<Style x:Key="ButtonFocusVisual">

		</Style>
		<LinearGradientBrush x:Key="ButtonNormalBackground" EndPoint="0,1" StartPoint="0,0">
			<GradientStop Color="#F3F3F3" Offset="0"/>
			<GradientStop Color="#EBEBEB" Offset="0.5"/>
			<GradientStop Color="#DDDDDD" Offset="0.5"/>
			<GradientStop Color="#CDCDCD" Offset="1"/>
		</LinearGradientBrush>
		<SolidColorBrush x:Key="ButtonNormalBorder" Color="#FF707070"/>
		<Style x:Key="Button" TargetType="{x:Type Button}">
			<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
			<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="HorizontalContentAlignment" Value="Center"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Padding" Value="1"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Button x:Name="Chrome" SnapsToDevicePixels="true">
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="MouseOver"/>
									<VisualState x:Name="Pressed"/>
									<VisualState x:Name="Disabled"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
						</Button>
						<ControlTemplate.Triggers>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Foreground" Value="#ADADAD"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
		<Style x:Key="ButtonStyle1" TargetType="{x:Type Button}">
			<Setter Property="FocusVisualStyle" Value="{StaticResource ButtonFocusVisual}"/>
			<Setter Property="Background" Value="{StaticResource ButtonNormalBackground}"/>
			<Setter Property="BorderBrush" Value="{StaticResource ButtonNormalBorder}"/>
			<Setter Property="BorderThickness" Value="1"/>
			<Setter Property="Foreground" Value="{DynamicResource {x:Static SystemColors.ControlTextBrushKey}}"/>
			<Setter Property="HorizontalContentAlignment" Value="Center"/>
			<Setter Property="VerticalContentAlignment" Value="Center"/>
			<Setter Property="Padding" Value="1"/>
			<Setter Property="Template">
				<Setter.Value>
					<ControlTemplate TargetType="{x:Type Button}">
						<Microsoft_Windows_Themes:ButtonChrome x:Name="Chrome" RenderMouseOver="{TemplateBinding IsMouseOver}" RenderPressed="{TemplateBinding IsPressed}" RenderDefaulted="{TemplateBinding IsDefaulted}" SnapsToDevicePixels="true" BorderBrush="{x:Null}">
							<VisualStateManager.VisualStateGroups>
								<VisualStateGroup x:Name="CommonStates">
									<VisualState x:Name="Normal"/>
									<VisualState x:Name="Pressed"/>
									<VisualState x:Name="Disabled"/>
								</VisualStateGroup>
								<VisualStateGroup x:Name="FocusStates">
									<VisualState x:Name="Unfocused"/>
									<VisualState x:Name="Focused"/>
								</VisualStateGroup>
								<VisualStateGroup x:Name="ValidationStates">
									<VisualState x:Name="Valid"/>
									<VisualState x:Name="InvalidFocused"/>
									<VisualState x:Name="InvalidUnfocused"/>
								</VisualStateGroup>
							</VisualStateManager.VisualStateGroups>
							<ContentPresenter x:Name="contentPresenter" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" RecognizesAccessKey="True" SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" OpacityMask="{x:Null}"/>
						</Microsoft_Windows_Themes:ButtonChrome>
						<ControlTemplate.Triggers>
							<Trigger Property="IsEnabled" Value="false">
								<Setter Property="Foreground" Value="#ADADAD"/>
							</Trigger>
						</ControlTemplate.Triggers>
					</ControlTemplate>
				</Setter.Value>
			</Setter>
		</Style>
	</Window.Resources>
	<Window.Triggers>
		<EventTrigger RoutedEvent="FrameworkElement.Loaded"/>
	</Window.Triggers>

	<Grid x:Name="LayoutRoot">
		<Grid Margin="0,-8,0,8" d:LayoutOverrides="Width">
			<Grid.RowDefinitions>
				<RowDefinition Height="0.228*"/>
				<RowDefinition Height="0.228*"/>
				<RowDefinition Height="0.228*"/>
				<RowDefinition Height="0.228*"/>
				<RowDefinition Height="0.172*"/>
			</Grid.RowDefinitions>
			<StackPanel Margin="245.5,0" Grid.Row="2" Width="133" HorizontalAlignment="Center" VerticalAlignment="Center">
                <TextBlock  x:Name="tbPunkte" Text="0" TextAlignment="Center" FontSize="48" Foreground="Red" FontStyle="Normal" FontWeight="Bold" />
            </StackPanel>
            <Border BorderBrush="#FF595959" BorderThickness="2" Margin="0,18,216,15" CornerRadius="8" Background="#FF595959" HorizontalAlignment="Right" VerticalAlignment="Center" Grid.Row="4" Width="auto" Height="37">
				<StackPanel Margin="0" Orientation="Horizontal" VerticalAlignment="Center" >
					<Button Content="Nächste Karte"  Margin="2,0,5,0" HorizontalAlignment="Center" VerticalAlignment="Center" x:Name="Button1" Height="23"  />
                    <Button Content="Ende der Runde" Margin="0,0,2,0" Height="23" x:Name="Button3" IsEnabled="False" />
                </StackPanel>
			</Border>
			<Border BorderBrush="#FF595959" BorderThickness="3" Margin="2,0,0,0" CornerRadius="5" Background="#FF595959" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="3">
				<StackPanel Margin="0" Orientation="Horizontal"  d:LayoutOverrides="HorizontalMargin">
                    <Image Source="pics/clubs-a-150.png" Stretch="Fill" x:Name="karte1" Margin="2"/>
                    <Image Source="pics/clubs-a-150.png" Stretch="Fill"  x:Name="karte2" Margin="2"/>
                    <Image Source="pics/clubs-a-150.png" Stretch="Fill" x:Name="karte3" Margin="2"/>
                    <Image Source="pics/clubs-k-150.png" Stretch="Fill"  x:Name="karte4" Margin="2"/>
                    <Image Source="pics/clubs-k-150.png" Stretch="Fill"  x:Name="karte5" Margin="2"/>
				</StackPanel>
			</Border>
			<Border BorderBrush="#FF595959" BorderThickness="3" Margin="0" CornerRadius="5" Background="#FF595959" HorizontalAlignment="Center" VerticalAlignment="Center" Grid.Row="1">
				<StackPanel Margin="0" Orientation="Horizontal" d:LayoutOverrides="HorizontalMargin">
					<Image Source="pics/clubs-a-150.png" Stretch="Fill" HorizontalAlignment="Left" Margin="2,0,0,0" x:Name="cpkarte1" />
					<Image Source="pics/clubs-a-150.png" Stretch="Fill" HorizontalAlignment="Left" Margin="2,0,0,0" x:Name="cpkarte2" />
					<Image Source="pics/clubs-k-150.png" Stretch="Fill" HorizontalAlignment="Left" Margin="2,0,0,0" x:Name="cpkarte3" />
					<Image Source="pics/clubs-k-150.png" Stretch="Fill" HorizontalAlignment="Left" Margin="2,0,0,0" x:Name="cpkarte4" />
                    <Image Source="pics/clubs-a-150.png" Stretch="Fill" HorizontalAlignment="Left" x:Name="cpkarte5" />

                </StackPanel>
			</Border>
			<Border BorderBrush="#FF595959"  BorderThickness="0" Margin="267.851,0,242,0" CornerRadius="8" Background="#FF595959" VerticalAlignment="Center" d:LayoutOverrides="Width">
				<StackPanel Margin="0" VerticalAlignment="Center">
                    <StackPanel Margin="0" Orientation="Horizontal"  HorizontalAlignment="Center" VerticalAlignment="Center">
						<Label x:Name="label" Content="Gewonnen:" Margin="3" Foreground="White" Width="69.46"/>
						<TextBlock x:Name="wins" TextWrapping="Wrap" Margin="3" Foreground="Red" TextAlignment="Center" VerticalAlignment="Center" RenderTransformOrigin="-0.543,1.577" HorizontalAlignment="Center" FontFamily="/WpfApplication1;component/Fonts/#Segoe UI"><Run Language="de-de" Text="0"/></TextBlock>
					</StackPanel>
					<StackPanel Margin="0" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
						<Label Content="Verloren:    " Margin="3" Foreground="White" Background="#00000000" Width="69.46"/>
						<TextBlock x:Name="lose" TextWrapping="Wrap" Margin="3" Foreground="Red" TextAlignment="Center" VerticalAlignment="Center" RenderTransformOrigin="-0.136,4.242" HorizontalAlignment="Center"><Run Language="de-de" Text="0"/></TextBlock>
					</StackPanel>
				</StackPanel>
			</Border>
            <Border BorderBrush="#FF595959" BorderThickness="3" Margin="0,10,0,0" CornerRadius="8" Background="#FF595959" HorizontalAlignment="Right" VerticalAlignment="Top">
            	<StackPanel Margin="0" Orientation="Horizontal">
            		<Button x:Name="Button2" Content="Neues Spiel" Style="{DynamicResource ButtonStyle1}" Width="75" Foreground="White"/>
                </StackPanel>
            </Border>
        </Grid>
	</Grid>
</Window>